package com.sgl.gk.mapper;


import com.sgl.gk.domain.GkProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GkProductMapper {
    List<GkProduct> list(GkProduct gkProduct);

    int add(GkProduct gkProduct);

    int edit(GkProduct gkProduct);

    int removeByIds(Long[] ids);

    List<GkProduct> selectByIds(List<Long> productIds);

    List<GkProduct> selectByNames(List<String> productNames);

    List<GkProduct> selectByNameExclude(@Param("name") String name, @Param("id") Long id);
}
